/*
*
* CmsCommentsInfoMapper.java
* Copyright(C) 2017-2020 DHCC
* @date 2020-11-17
*/
package com.cluster.platform.mapper;

import java.util.List;

import com.cluster.platform.model.CmsCommentsInfo;
import com.cluster.platform.model.CmsCommentsInfoExample;
import org.apache.ibatis.annotations.Param;

public interface CmsCommentsInfoMapper {
    /**
     *
     * @mbg.generated 2020-11-17
     */
    long countByExample(CmsCommentsInfoExample example);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int deleteByExample(CmsCommentsInfoExample example);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int deleteByPrimaryKey(String id);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int insert(CmsCommentsInfo record);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int insertSelective(CmsCommentsInfo record);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    List<CmsCommentsInfo> selectByExample(CmsCommentsInfoExample example);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    CmsCommentsInfo selectByPrimaryKey(String id);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int updateByExampleSelective(@Param("record") CmsCommentsInfo record, @Param("example") CmsCommentsInfoExample example);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int updateByExample(@Param("record") CmsCommentsInfo record, @Param("example") CmsCommentsInfoExample example);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int updateByPrimaryKeySelective(CmsCommentsInfo record);

    /**
     *
     * @mbg.generated 2020-11-17
     */
    int updateByPrimaryKey(CmsCommentsInfo record);

    /**
     * 批量修改status
     */
    int batchUpdateByStatus(@Param("cmsCommentsInfos") List<CmsCommentsInfo> cmsCommentsInfos);

    /**
     * 条件查询
     */
    List<CmsCommentsInfo> searchByExampleSelective(CmsCommentsInfo cmsCommentsInfo);

    List<CmsCommentsInfo> searchCommentsByTopicId(@Param("topicId")String topicId);
}